|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpow.ivyclient.HeartBeat
public class HeartBeat
thread which send a periodic message to a client or server to say that the connection is still alive (period has to be less than the socket timeout of the the server)
| Constructor Summary | |
|---|---|
HeartBeat(AES cipher,
int webId,
java.net.InetAddress srv,
int port2send,
long heartbeatPeriod)
define the parameter of the heartbeat message |
|
| Method Summary | |
|---|---|
void |
run()
send a periodic heartbeat message |
void |
stop_thread()
stop the heartbeat thread by ending the infinite loop |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HeartBeat(AES cipher,
int webId,
java.net.InetAddress srv,
int port2send,
long heartbeatPeriod)
cipher - the way to encrypt message to be send on udp channelwebId - the id of the bussrv - the ip address of the host hosting the ivy busport2send - the udp port on which the heartbeat is sentheartbeatPeriod - the period of time to send heartbeat message| Method Detail |
|---|
public void run()
run in interface java.lang.Runnablepublic void stop_thread()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||